<?php
if (!defined('IN_IA')) {
	exit('Access Denied');
}

if (!function_exists('m')) {
	function m($name = '')
	{
		static $_modules = array();

		if (isset($_modules[$name])) {
			return $_modules[$name];
		}

		$model = IA_ROOT . '/framework/model/' . strtolower($name) . '.php';

		if (!is_file($model)) {
			exit(' Model ' . $name . ' Not Found!');
		}

		require_once $model;
		$class_name = ucfirst($name) . '_EweiShopV2Model';
		$_modules[$name] = new $class_name();
		return $_modules[$name];
	}
}
?>
